From 6c78eeebe4aa56677edded5062c35dbebac7b812 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 8 May 2020 15:31:19 -0400 Subject: [PATCH] dialog: Remove code that doesn't work anymore When GtkContainer goes away, we don't have an "add" signal anymore. --- gtk/gtkdialog.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index ca0e67ed21..0fbb5c3be7 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -404,19 +404,6 @@ update_suggested_action (GtkDialog *dialog) } } -static void -add_cb (GtkContainer *container, - GtkWidget *widget, - GtkDialog *dialog) -{ - GtkDialogPrivate *priv = gtk_dialog_get_instance_private (dialog); - - if (priv->use_header_bar) - g_warning ("Content added to the action area of a dialog using header bars"); - - gtk_widget_set_visible (priv->action_box, TRUE); -} - static void gtk_dialog_constructed (GObject *object) { @@ -464,8 +451,6 @@ gtk_dialog_constructed (GObject *object) update_suggested_action (dialog); _gtk_header_bar_track_default_decoration (GTK_HEADER_BAR (priv->headerbar)); - - g_signal_connect (priv->action_area, "add", G_CALLBACK (add_cb), dialog); } else { -- 2.30.2